﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Data.SqlClient;
using System.Configuration;


namespace Quaack.Account
{
    public partial class Logoff : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
            HttpContext.Current.Response.Cache.SetNoServerCaching();
            HttpContext.Current.Response.Cache.SetNoStore();

            // en uitloggen van de sessie
            FormsAuthentication.SignOut();
            Session.Clear();
            Response.AddHeader("refresh", "3; URL=../Default.aspx");

            // en uitloggen van de sessie
//            if (!String.IsNullOrEmpty(Request.Params["logout"]))
//            {
                
//                Response.Redirect("./");
//            }

            //session afsluiten niet doen. Er gaat dan teveel uit
        }
    }
}
            

            